package com.gitee.neuray.security.par.basicData.entity;

import com.gitee.neuray.security.common.vo.TreeNode;
import lombok.Data;

import java.util.Objects;

@Data
public class BasicDataTree extends TreeNode implements Comparable<BasicDataTree>{

private String label;
private String name;
private Integer order;
private Integer level;
private Integer kpfs;
private String kpd;
private String kpbz;
private String kpdl;
private String dwlx;
private String deptCode;

@Override
public int compareTo(BasicDataTree o) {
        if(Objects.equals(o.getId(),id)){
        return 0;
        }
        if(Objects.equals(o.getOrder(),order)){
        return -1;
        }
        return order.compareTo(o.getOrder());
        }
        }
